<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html lang="zxx">

<head>
	<title>账户申诉</title>
	<!-- Meta tag Keywords -->
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<meta charset="UTF-8" />
	<meta name="keywords" content="" />
	<script>
		addEventListener("load", function () {
			setTimeout(hideURLbar, 0);
		}, false);

		function hideURLbar() {
			window.scrollTo(0, 1);
		}
	</script>
	<!--// Meta tag Keywords -->

	<!-- 设置网页图标 -->
	<link rel="shortcut icon" href="images/browserLOGO2.png" type="image/x-icon" />
	<link rel="stylesheet" href="css/bootstrap.css">
	<!-- 引用Bootstrap -->
	<link rel="stylesheet" href="css/style.css" type="text/css" media="all" />
	<link rel="stylesheet" href="css/fontawesome-all.css">

	<!-- 网页字体库 -->
	<link href="http://fonts.googleapis.com/css?family=Poppins:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i&amp;subset=devanagari,latin-ext"
	 rel="stylesheet">
	<link href="http://fonts.googleapis.com/css?family=Tangerine:400,700" rel="stylesheet">
	<link href="http://fonts.googleapis.com/css?family=Roboto+Condensed:300,300i,400,400i,700,700i&amp;subset=cyrillic,cyrillic-ext,greek,greek-ext,latin-ext,vietnamese"
	 rel="stylesheet">

</head>

	<!------------------------------>
	<!------------ 隐藏域  ------------>
	<input type="hidden" id="currentUid" value="${sessionScope.uid }">
	<!------------------------------>

<body>
	<div class="main-sec" id="home">
		<header>
			<div class="wrap">
				<nav class="navbar navbar-expand-lg navbar-light shift">
					<div class="logo">
						<h1 id="myH1">
							<a class="navbar-brand" href="home.jsp">
								Yoga
								<img src="images/LOGO-白色剪影.png" alt="哦豁" style="max-width: 70px;">
							</a>
						</h1>
					</div>
				</nav>
			</div>
		</header>
		<!--//header-->

		<!-- banner-text -->
		<div class="slider">
			<!-------------------------------->
			<!------------ 顶部轮播图  ------------>
			<!-------------------------------->
			<%@include file="jsp/imageAct.jsp" %>
			<!-------------------------------->
			<!-------------------------------->
			<div class="clearfix"></div>
			<!-- 下滑按钮-->
			<div class="thim-click-to-bottom">
				<div class="rotate">
					<a href="#about" class="scroll" style="width: 100%;">
						<i class="fas fa-angle-double-down"></i>
					</a>
				</div>
			</div>
			<!-- //下滑按钮-->
		</div>
	</div>

	<!-- contact -->
	<div class="contact-w3l py-5">
		<div class="container py-xl-5 py-lg-3">
			<h3 class="tittle text-dark text-center font-weight-bold mb-lg-5 mb-4">账户申诉</h3>
			<div class="row">
				<div class="col-lg-6 contact-agileits-w3layouts">
					<h4 class="contact-title text-uppercase text-dark mb-sm-4 mb-3">账户申诉</h4>
					<h5 class="font-weight-light text-dark">如果您违反蜗牛瑜伽APP的社区规则，我们将会对您的账户做出限制，直到您提交申诉让我们了解到相同的情况不会再发生，我们会重新开放账户的使用权限。</h5>
					<div class="midd-contact my-xl-5 my-4 pl-4 border-left">
						<h6 class="text-dark mb-2">什么是社区规则？</h6>
						<p>所有蜗牛瑜伽APP的用户应与其他用户诚信、友善相处，任何发布欺诈欺骗信息的行为和人身攻击等不当言论的行为都是违反社区规则的。</p>
					</div>
					<div class="midd-contact my-xl-5 my-4 pl-4 border-left">
						<h6 class="text-dark mb-2">审核需要多长时间？</h6>
						<p>如果您已提交申诉，请耐心等待审核结果，审核通常需要一个工作日的时间，感谢您的配合。</p>
					</div>
				</div>
				<div class="col-lg-6 regstr-r-w3-agileits mt-lg-0 mt-5">
					<h4 class="contact-title text-uppercase text-dark mb-sm-4 mb-3">提交您的申诉</h4>
					<div class="form-bg-w3ls">
						<form action="" method="post">
							<div class="form-group">
								<input type="text" name="uphone" class="form-control" placeholder="请填写账户绑定手机号码" required="">
							</div>
							<div class="form-group">
								<textarea name="Message" class="form-control" placeholder="申诉内容" required="" style="min-height: 400px" id="cpReason"></textarea>
							</div>
							<input type="submit" value="提交申诉" class="button-w3layouts border text-uppercase" onclick="submitComplain()">
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
	<!-- //contact -->

		<!-------------------------------------->
		<!------------- 底部Logo和版权  ------------->
		<!-------------------------------------->
		<%@include file="jsp/footer.jsp" %>
		<!-------------------------------------->
		<!-------------------------------------->


	<script src="js/jquery-2.2.3.min.js"></script>
	<script src="js/responsiveslides.min.js"></script>
	<script src="js/owl.carousel.js"></script>
	<script>
		$(function () {
			//轮播图控制
			$("#slider4").responsiveSlides({
				auto: true,
				pager: true,
				nav: false,
				speed: 1000,
				namespace: "callbacks",
				before: function () {
					$('.events').append("<li>before event fired.</li>");
				},
				after: function () {
					$('.events').append("<li>after event fired.</li>");
				}
			});
			
			//教练推荐部分，根据屏幕大小设置响应式布局
			$('.owl-carousel').owlCarousel({
				loop: true,
				margin: 10,
				responsiveClass: true,
				responsive: {
					0: {
						items: 1,
						nav: true
					},
					600: {
						items: 1,
						nav: false
					},
					768: {
						items: 2,
						nav: false
					},
					1000: {
						items: 3,
						nav: true,
						loop: false,
						margin: 20
					}
				}
			})
		});
		
		function submitComplain(){
			$.ajax({
				url:"complain/submitComplain",
				type:"post",
				data:{
					uid:$("#currentUid").val(),
					cpReason:$("#cpReason").val()
				},
				success:function(data){
					alert(data);
					if(data.indexOf('成功')!=-1){
						location.reload();
					}
				}
			});
		}
	</script>
	<script src="js/SmoothScroll.min.js"></script>
	<script src="js/move-top.js"></script>
	<script src="js/easing.js"></script>
	<script src="js/skater.js"></script>
	<script src="js/bootstrap.js"></script>

</body>

</html>